package cn.hk.archives.mapper;

import cn.hk.archives.domain.ArchivesOld;
import cn.hk.archives.domain.vo.ArchivesVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.common.annotation.DataSource;
import com.ruoyi.common.enums.DataSourceType;
import org.apache.ibatis.annotations.Param;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

/**
 * <p>
 * 老年人及慢性病建档 Mapper 接口
 * </p>
 *
 * @author xu
 * @since 2023-05-17
 */
@DataSource(DataSourceType.KELIN)
public interface ArchivesOldMapper extends BaseMapper<ArchivesOld> {
    ArchivesVo selectUserArchivesOldByUserId(@Param("userId") Long userId);

    Boolean insertArchivesOld(ArchivesVo archivesVo);

    Boolean updateArchivesOld(ArchivesVo archivesVo);
}
